<?php
$this->breadcrumbs=array(
	$type=>array('index', 'tid'=>$tid),
	'创建',
);

$this->menu=array(
	array('label'=>'创建事件', 'url'=>array('create','tid'=>DefineBox::EVENT_TYPE_CODE)),
	array('label'=>'创建知识', 'url'=>array('create','tid'=>DefineBox::PEDIA_TYPE_CODE)),
	array('label'=>'创建地点', 'url'=>array('create', 'tid'=>DefineBox::SCENE_TYPE_CODE)),
	array('label'=>'创建角色', 'url'=>array('create', 'tid'=>DefineBox::ROLE_TYPE_CODE)),
	array('label'=>'创建物品', 'url'=>array('create', 'tid'=>DefineBox::OBJECT_TYPE_CODE)),
	array('label'=>'管理内容', 'url'=>array('admin')),
);

$this->category = HandleBox::getCategory();
?>

<h1>创建<?php echo HandleBox::getNodeType($tid)?></h1>

<?php 
	// 获取提示信息
	if(Yii::app()->user->hasFlash('nodeHandleInfo')){
		echo '<div class = "info">';
		echo Yii::app()->user->getFlash('nodeHandleInfo');
		echo '</div>';
	}
?> 

<?php echo $this->renderPartial('_form', array('model'=>$model,'nodeMeta'=>$nodeMeta, 'virtual'=>$virtual, 'cats'=>$cats)); ?>